package com.ruoyi.ucar.domain;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.UCarBaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

/**
 * 合同工具对象 t_contract_tool
 * 
 * @author sungangbin
 * @date 2025-05-13
 */
@TableName("t_contract_tool")
@Data
public class TContractTool extends UCarBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value="id",type = IdType.AUTO)
    private Long id;

    /** 合同工具表主键uuid */
    @Excel(name = "合同工具表主键uuid")
    @TableField("contract_tool_uuid")
    private String contractToolUuid;

    /** 工具名称 */
    @Excel(name = "工具名称")
    @TableField("tool_name")
    private String toolName;

    /** 文件附件主键UUID */
    @Excel(name = "文件附件主键UUID")
    @TableField("file_main_uuid")
    private String fileMainUuid;

    /** 状态 */
    @Excel(name = "状态")
    @TableField("status")
    private Long status;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("upload_datetime")
    private Date uploadDatetime;


    /** 备注 */
    @Excel(name = "备注")
    @TableField("remark")
    private String remark;


    /** 创建人 */
    @Excel(name = "创建人")
    @TableField("created_by")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("created_time")
    private Date createdTime;


    /** 更新人 */
    @Excel(name = "更新人")
    @TableField("updated_by")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("updated_time")
    private Date updatedTime;

    /** 删除标志 */
    @Excel(name = "删除标志")
    @TableField("delete_flag")
    private Long deleteFlag;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("contractToolUuid", getContractToolUuid())
                .append("toolName", getToolName())
                .append("fileMainUuid", getFileMainUuid())
                .append("status", getStatus())
                .append("uploadDatetime", getUploadDatetime())
                .append("remark", getRemark())
                .append("createdBy", getCreatedBy())
                .append("createdTime", getCreatedTime())
                .append("updatedBy", getUpdatedBy())
                .append("updatedTime", getUpdatedTime())
                .append("deleteFlag", getDeleteFlag())
                .toString();
    }
}
